	<div class="inner"><span class="corners-top"><span></span></span>

	
	<p>${I18n.getMessage("pollDesc")}</p>
	

	<fieldset class="fields2">
		<#if poll?exists>
		<#assign pollQuestion = poll.label?default("")?html/>
		<#assign pollLength = poll.length/>
	<#else>
		<#assign pollQuestion = ""/>
		<#assign pollLength = "0"/>
	</#if>
		<dl>
			<dt><label for="poll_title">${I18n.getMessage("PostForm.pollQuestion")}:</label></dt>
			<dd><input type="text" name="poll_label" id="poll_label" maxlength="255" size="50" value="${pollQuestion}" class="inputbox"></dd>
		</dl>
		
	<dl id="pollOptionWithDelete" style="display: none;">
	<dt><label>${I18n.getMessage("PostForm.pollOption")}:</label></dt>
		<dd><input type="text" id="pollOption" name="poll_option" maxlength="255" size="50" class="inputbox autowidth"></input>
		<input type="button" onclick="javascript:deletePollOption(this)" value="${I18n.getMessage("PostForm.pollDeleteOption")}" class="button2"></input></dd>
	</dl>	
		
  	<#if poll?exists>
		<#assign optionCount = 0/>
		<#list poll.options as option>
			<#assign optionText = option.text?default("")?html/>
			<dl  id="pollOption">
			<dt><label>${I18n.getMessage("PostForm.pollOption")}:</label></dt>
			<dd><input type="text" id="pollOption${option.id}" name="poll_option_${option.id}" maxlength="255" size="50" value="${optionText}" class="inputbox autowidth"></input>
			<input type="button" onclick="javascript:deletePollOption(this)" value="${I18n.getMessage("PostForm.pollDeleteOption")}" class="button2"></input></dd>
			</dl>
			<#if (option.id > optionCount)><#assign optionCount = option.id/></#if>
		</#list>

		<input type="hidden" name="poll_option_count" id="pollOptionCount" value="${optionCount}"/>
	<#else>
		<input type="hidden" name="poll_option_count" id="pollOptionCount" value="1"/>
					<dl  id="pollOption">
			<dt><label>${I18n.getMessage("PostForm.pollOption")}:</label></dt>
			<dd><input type="text" id="pollOption1" name="poll_option_1" maxlength="255" size="50" class="inputbox autowidth"></input>
			<input type="button" onclick="javascript:deletePollOption(this)" value="${I18n.getMessage("PostForm.pollDeleteOption")}" class="button2"></input></dd>
			</dl>
	</#if>
	
	<dl  id="pollOptionWithAdd">
		<dt></dt>
		<dd><input type="button" onclick="javascript:addPollOption()" value="${I18n.getMessage("PostForm.pollAddOption")}" class="button2"></input></dd>
	</dl>
	

		<hr class="dashed">
	
		<dl>
			<dt><label for="poll_length">${I18n.getMessage("PostForm.pollRunFor")}:</label></dt>
			<dd><label for="poll_length"><input type="text" name="poll_length" id="poll_length" maxlength="5" size="4" value="${pollLength}" class="inputbox autowidth"> ${I18n.getMessage("PostForm.pollDays")}</label></dd>
			<dd>${I18n.getMessage("PostForm.pollDaysDescription")}</dd>
		</dl>
	</fieldset>

	<span class="corners-bottom"><span></span></span></div>

